package com.mark.web.stars.entity.from;

import io.swagger.annotations.ApiModel;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

/**
 * @Description: 添加碎片表单
 * @Author: Mark
 * @CreateDate: 2019/4/18 21:52
 * @Version: 2.0
 * @Copyright : 豆浆油条个人非正式工作室
 */
@Data
@ApiModel(value = "添加碎片")
public class AddFragmentFrom {

    /**
     * 逻辑外键，所属类型id
     */
    @Min(value = 1,message = "碎片的类型id应该大于等于1")
    private Integer fkTypeId;

    /**
     * 内容
     */
    @NotBlank(message = "碎片内容不能为空！")
    private String content;

    /**
     * 状态:1:密码-2：公开
     */
    @Min(value = 1,message = "状态最小值为1")
    @Max(value = 2,message = "状态最大值为2")
    private Short status;

    /**
     * 图片地址
     */
    private String imgAddress;

}
